/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * PnlListFunction.java
 *
 * Created on 14 ม.ค. 2553, 14:32:53
 */

package Inventory;

/**
 *
 * @author Administrator
 */
public class PnlListFunction extends javax.swing.JPanel {

    /** Creates new form PnlListFunction */
    public PnlListFunction() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        pnlHeadListFun = new javax.swing.JPanel();
        lblHeadListFun = new javax.swing.JLabel();
        btnFunListSearch = new javax.swing.JButton();
        btnFunListAdd = new javax.swing.JButton();
        btnFunListDel = new javax.swing.JButton();
        btnFunListEdit = new javax.swing.JButton();
        btnFunPrint = new javax.swing.JButton();
        pnlListFun = new javax.swing.JPanel();
        lblFunCode = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        tblListFuntion = new javax.swing.JTable();
        lblFunName = new javax.swing.JLabel();
        lblFunComment = new javax.swing.JLabel();
        txtFuCode = new javax.swing.JTextField();
        txtFuName = new javax.swing.JTextField();
        jScrollPane2 = new javax.swing.JScrollPane();
        txbFuComment = new javax.swing.JTextArea();
        lblEmCode = new javax.swing.JLabel();
        txtFuDepart = new javax.swing.JTextField();

        setMaximumSize(new java.awt.Dimension(700, 500));
        setMinimumSize(new java.awt.Dimension(700, 500));
        setPreferredSize(new java.awt.Dimension(700, 500));
        setLayout(new java.awt.BorderLayout());

        pnlHeadListFun.setBackground(new java.awt.Color(204, 255, 204));
        pnlHeadListFun.setMinimumSize(new java.awt.Dimension(700, 80));
        pnlHeadListFun.setPreferredSize(new java.awt.Dimension(700, 80));

        lblHeadListFun.setFont(new java.awt.Font("Tahoma", 1, 16)); // NOI18N
        lblHeadListFun.setText("จัดการหน้าที่พนักงาน");

        btnFunListSearch.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/search_30x30.gif"))); // NOI18N

        btnFunListAdd.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/add_30x30.gif"))); // NOI18N

        btnFunListDel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/del_30x30.gif"))); // NOI18N

        btnFunListEdit.setFont(new java.awt.Font("Tahoma", 0, 14));
        btnFunListEdit.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/edit1_30x30.gif"))); // NOI18N
        btnFunListEdit.setMaximumSize(new java.awt.Dimension(75, 30));
        btnFunListEdit.setMinimumSize(new java.awt.Dimension(75, 30));
        btnFunListEdit.setPreferredSize(new java.awt.Dimension(75, 30));

        btnFunPrint.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/print_30x30.gif"))); // NOI18N
        btnFunPrint.setMaximumSize(new java.awt.Dimension(40, 40));
        btnFunPrint.setMinimumSize(new java.awt.Dimension(40, 40));
        btnFunPrint.setPreferredSize(new java.awt.Dimension(40, 40));

        javax.swing.GroupLayout pnlHeadListFunLayout = new javax.swing.GroupLayout(pnlHeadListFun);
        pnlHeadListFun.setLayout(pnlHeadListFunLayout);
        pnlHeadListFunLayout.setHorizontalGroup(
            pnlHeadListFunLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlHeadListFunLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(pnlHeadListFunLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlHeadListFunLayout.createSequentialGroup()
                        .addComponent(btnFunListSearch, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnFunListAdd, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnFunListDel, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnFunListEdit, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnFunPrint, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(lblHeadListFun))
                .addContainerGap(440, Short.MAX_VALUE))
        );
        pnlHeadListFunLayout.setVerticalGroup(
            pnlHeadListFunLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlHeadListFunLayout.createSequentialGroup()
                .addGap(10, 10, 10)
                .addGroup(pnlHeadListFunLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(btnFunPrint, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(pnlHeadListFunLayout.createSequentialGroup()
                        .addComponent(lblHeadListFun)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(pnlHeadListFunLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(btnFunListSearch, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(btnFunListAdd, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(btnFunListDel, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(btnFunListEdit, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addGap(14, 14, 14))
        );

        add(pnlHeadListFun, java.awt.BorderLayout.PAGE_START);

        lblFunCode.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblFunCode.setText("รหัสหน้าที่ :");

        tblListFuntion.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null},
                {null, null},
                {null, null},
                {null, null}
            },
            new String [] {
                "หน้าที่", "แผนก"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.String.class
            };
            boolean[] canEdit = new boolean [] {
                false, false
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPane1.setViewportView(tblListFuntion);

        lblFunName.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblFunName.setText("หน้าที่ :");

        lblFunComment.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblFunComment.setText("หมายเหตุ :");

        txtFuCode.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        txtFuName.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        txbFuComment.setColumns(14);
        txbFuComment.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        txbFuComment.setRows(2);
        txbFuComment.setTabSize(5);
        jScrollPane2.setViewportView(txbFuComment);

        lblEmCode.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblEmCode.setText("แผนก :");

        txtFuDepart.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        javax.swing.GroupLayout pnlListFunLayout = new javax.swing.GroupLayout(pnlListFun);
        pnlListFun.setLayout(pnlListFunLayout);
        pnlListFunLayout.setHorizontalGroup(
            pnlListFunLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlListFunLayout.createSequentialGroup()
                .addGroup(pnlListFunLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(pnlListFunLayout.createSequentialGroup()
                        .addGap(20, 20, 20)
                        .addGroup(pnlListFunLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblFunCode, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(lblFunName, javax.swing.GroupLayout.Alignment.TRAILING))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(pnlListFunLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(txtFuName)
                            .addComponent(txtFuCode, javax.swing.GroupLayout.DEFAULT_SIZE, 177, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(pnlListFunLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblEmCode, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(lblFunComment, javax.swing.GroupLayout.Alignment.TRAILING))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(pnlListFunLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(txtFuDepart)
                            .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 159, Short.MAX_VALUE)))
                    .addGroup(pnlListFunLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 680, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        pnlListFunLayout.setVerticalGroup(
            pnlListFunLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlListFunLayout.createSequentialGroup()
                .addGroup(pnlListFunLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlListFunLayout.createSequentialGroup()
                        .addGap(20, 20, 20)
                        .addGroup(pnlListFunLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblFunCode)
                            .addComponent(txtFuCode, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(pnlListFunLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblFunComment)
                            .addGroup(pnlListFunLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(lblFunName)
                                .addComponent(txtFuName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addGroup(pnlListFunLayout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(pnlListFunLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblEmCode)
                            .addComponent(txtFuDepart, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(195, 195, 195))
        );

        add(pnlListFun, java.awt.BorderLayout.CENTER);
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnFunListAdd;
    private javax.swing.JButton btnFunListDel;
    private javax.swing.JButton btnFunListEdit;
    private javax.swing.JButton btnFunListSearch;
    private javax.swing.JButton btnFunPrint;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JLabel lblEmCode;
    private javax.swing.JLabel lblFunCode;
    private javax.swing.JLabel lblFunComment;
    private javax.swing.JLabel lblFunName;
    private javax.swing.JLabel lblHeadListFun;
    private javax.swing.JPanel pnlHeadListFun;
    private javax.swing.JPanel pnlListFun;
    private javax.swing.JTable tblListFuntion;
    private javax.swing.JTextArea txbFuComment;
    private javax.swing.JTextField txtFuCode;
    private javax.swing.JTextField txtFuDepart;
    private javax.swing.JTextField txtFuName;
    // End of variables declaration//GEN-END:variables

}
